package cn.wolfcode.trip.base.service.impl;



import cn.wolfcode.trip.base.domain.TaxiOrder;

import cn.wolfcode.trip.base.mapper.TaxiOrderMapper;
import cn.wolfcode.trip.base.query.QueryObject;

import cn.wolfcode.trip.base.service.ITaxiOrderService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaxiOrderServiceImpl implements ITaxiOrderService {
    @Autowired
    private TaxiOrderMapper taxiOrderMapper;


    @Override
    public PageInfo query(QueryObject qo) {
        PageHelper.startPage(qo.getCurrentPage(),qo.getPageSize());
        List<TaxiOrder> list = taxiOrderMapper.queryForList(qo);
        return new PageInfo<TaxiOrder>(list);
    }



}
